package com.zhuoshi.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import com.zhuoshi.bean.WdApartmentLayout;
import com.zhuoshi.bean.WdPayType;
import com.zhuoshi.bean.WdPurpose;
import com.zhuoshi.mapper.WdPurposeMapper;
import com.zhuoshi.service.WdApartmentLayoutService;
import com.zhuoshi.service.WdPurposeService;
@Service
public class WdPurposeServiceImpl implements WdPurposeService{
	@Autowired
	private WdPurposeMapper wdPurposeMapper;

	@Override
	public List<WdPurpose> selectAp() {
		List<WdPurpose>wdPurpose=wdPurposeMapper.selectAllp();
		return wdPurpose;
	}

	public void addP(WdPurpose wdPurpose) {
		wdPurposeMapper.addPurpose(wdPurpose);
		
	}

	public void deleteP(String purposeId) {
		wdPurposeMapper.deletePurpose(purposeId);
		
	}

	public List<WdPurpose> mouhu(WdPurpose wdPurpose) {
		// TODO Auto-generated method stub
		 List<WdPurpose> findAllList = wdPurposeMapper.muohu(wdPurpose);  
	     return findAllList; 
	}

	
		
	}

	

	
	
	

	

	


